package com.hinnotek.amoeba.adapters.old

import android.widget.*
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.hinnotek.amoeba.R
import com.hinnotek.amoeba.ui.fragment.FragmentHomeWork

class SellListAdapter : BaseQuickAdapter<FragmentHomeWork.Bean, BaseViewHolder>(R.layout.item_sell_list) {
    override fun convert(holder: BaseViewHolder, item: FragmentHomeWork.Bean) {
        val imageView = holder.getView<ImageView>(R.id.iv)
        val textView = holder.getView<TextView>(R.id.tv)
        imageView.setImageResource(item.iv)
        textView.text = item.tv
    }
}